package com.wicket.okrframework.web.contorller;
import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrframework.biz.service.dto.req.*;
import com.wicket.okrframework.biz.service.dto.res.*;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrframework.biz.service.CaptchaService;
import com.wicket.okrframework.common.util.CommonFunctionHelper;
import com.wicket.okrframework.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/base/captcha/")
public class CaptchaController {
    @Autowired
    CaptchaService  captchaService;
/**
   * D1-检测验证码是否有效（特殊方法）
   */
    @PostMapping("checkCaptchaValid")
    public OkrResult<CheckCaptchaValidRespDto> checkCaptchaValid(@RequestBody @Validated CheckCaptchaValidReqDto reqDTO){
    return OkrResult.success(captchaService.checkCaptchaValid(reqDTO));
    }
}
  